
#主动技能【安娜女王的复仇】
execute as @a[tag=haidao,scores={skEXBottle=1..}] run function nw:yingxiong/1yingxiong/05haidao/skill/1annanvwang
#主动技能【安娜女王的复仇】CD
execute as @a[tag=haidao,scores={skCDEXBottle=0}] run function nw:yingxiong/1yingxiong/05haidao/skill/1annanvwang_cd

#被动技能【惊涛骇浪】每2秒落雷
execute if score SystemRain System matches 1.. at @e[type=minecraft:trident,tag=!heibang,scores={skTimeKe=30..}] at @e[distance=0..4.5,tag=!haidao] run summon lightning_bolt
execute if score SystemRain System matches 1.. at @e[type=minecraft:trident,tag=!heibang,scores={skTimeKe=30..}] unless entity @e[distance=0..4.5,tag=!haidao,gamemode=!spectator] run summon lightning_bolt
scoreboard players reset @e[type=minecraft:trident,tag=!heibang,scores={skTimeKe=30..}] skTimeKe


execute as @a[tag=haidao] run title @s actionbar [{"text":"安娜女王之复仇","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEXBottle","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 雷雨天","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 持续时间：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"System","name":"SystemRain"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
